import request from '@/utils/request'

// 查询help列表
export function listHelp(query) {
  return request({
    url: '/mis/help/list',
    method: 'get',
    params: query
  })
}

// 查询help详细
export function getHelp(ctId) {
  return request({
    url: '/mis/help/' + ctId,
    method: 'get'
  })
}

// 根据funNo查询help详细
export function infoByFunNo(ctId) {
  return request({
    url: '/mis/help/infoByFunNo/' + ctId,
    method: 'get'
  })
}


// 新增help
export function addHelp(data) {
  return request({
    url: '/mis/help',
    method: 'post',
    data: data
  })
}

// 修改help
export function updateHelp(data) {
  return request({
    url: '/mis/help/edit',
    method: 'post',
    data: data
  })
}

// 删除help
export function delHelp(ctId) {
  return request({
    url: '/mis/help/delete/' + ctId,
    method: 'post'
  })
}

// 导出help
export function exportHelp(query) {
  return request({
    url: '/mis/help/export',
    method: 'get',
    params: query
  })
}